# -*- coding: utf-8 -*-
import time


def datetime_to_timestamp(date_time):
    return int(time.mktime(date_time.timetuple()) * 1000)
